import request from '@/utils/request'


export function sellerList() {
  return request({
    url: '/seller/list',
    method: 'get'
  })
}

export function pageRequest(data) {
  return request({
    url: '/seller/page',
    method: 'post',
    data
  })
}

export function save(data) {
  return request({
    url: '/seller/save',
    method: 'post',
    data
  })
}


export function update(data) {
  return request({
    url: '/seller/update',
    method: 'post',
    data
  })
}

export function disable(data) {
  return request({
    url: '/seller/disable',
    method: 'post',
    data
  })
}

export function remove(data) {
  return request({
    url: '/seller/delete',
    method: 'delete',
    // headers: {'Content-Type': 'application/x-www-form-urlencoded'},
    data
  })
}

export function sellerCount() {
  return request({
    url: '/seller/count',
    method: 'get'
  })
}
